package com.bruce.pattern.structural.facade;

import org.junit.Test;

/**
 * Created by bruce on 2018/11/3 21:21
 */
public class MainTest {

    //就是将多个业务流程步骤组合在一个类中,对外提供参数,返回最终结果,调用者只需要调用一个类就行,即外观类
    //tomcat中Facade结果的类基本上是外观模式
    @Test
    public void test1(){
        GiftExchangeService giftExchangeService = new GiftExchangeService();

        PointsGift pointsGift = new PointsGift("机械键盘");
        giftExchangeService.giftExchange(pointsGift);

    }






}
